package com.ruoyi.record.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 *
 * @author ruoyi
 * @date 2025-07-04
 */
@Data
@EqualsAndHashCode(callSuper=false)
public class WordHearRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Integer id;

    /** 书名 */
    @Excel(name = "书名")
    private String book;

    /** 单元 */
    @Excel(name = "单元")
    private String unit;

    /** 次数 */
    private Integer times;

    /** 用户 */
    private Long userId;

    private String practice;
    private String complete;
    private String organize;
    private String date;

    /** 名称 */
    @Excel(name = "名称")
    private String userName;

    /** 校区 */
    @Excel(name = "校区")
    private String userSchool;

    /** 用时 */
    @Excel(name = "用时")
    private String usedTime;

    /** 单词数 */
    @Excel(name = "单词数")
    private Integer wordNum;

    /** 正确率 */
    @Excel(name = "完成率")
    private BigDecimal correctRate;

    /** 类型 */
    @Excel(name = "类型")
    private String type;

    /** 正确个数 */
    @Excel(name = "完成个数")
    private Integer correctNum;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("book", getBook())
            .append("unit", getUnit())
            .append("times", getTimes())
            .append("createTime", getCreateTime())
            .append("userId", getUserId())
            .append("userName", getUserName())
            .append("userSchool", getUserSchool())
            .append("usedTime", getUsedTime())
            .append("updateTime", getUpdateTime())
            .append("wordNum", getWordNum())
            .append("correctRate", getCorrectRate())
            .append("type", getType())
            .append("correctNum", getCorrectNum())
            .toString();
    }
}
